/*
 * File Name:               Vector3Extension.cs
 * 
 * Description:             普通类
 * Author:                  lisiyu <576603306@qq.com>
 * Create Date:             2016/12/23
 */

using UnityEngine;

public static class Vector3Extension 
{
    public static XVector3 ignoreY(this XVector3 target)
    {
        var ret = target;
        ret.y = 0;
        return ret;
    }

    public static XVector3 ignoreX(this XVector3 target)
    {
        var ret = target;
        ret.x = 0;
        return ret;
    }

    public static XVector3 ignoreZ(this XVector3 target)
    {
        var ret = target;
        ret.z = 0;
        return ret;
    }

}
